import request from '@/utils/request.js'
// import store from '@/store/index.js' // store===this.$store
// 获取用户信息
export const userProfile = () => {
  return request({
    url: '/v1_0/user/profile'
    // headers: {
    //   Authorization: `Bearer ${store.state.tokenObj.token}`
    // }
  })
}

// 修改用户信息
export const userProfilePatch = data => {
  return request({
    url: '/v1_0/user/profile',
    method: 'patch',
    data
  })
}
// 头像上传
export const userPhoto = data => {
  return request({
    url: '/v1_0/user/photo',
    method: 'patch',
    data
  })
}
